package com.wish.financial.controller;

import com.wish.base.vo.FinancialVo;
import com.wish.common.core.web.controller.BaseController;
import com.wish.common.core.web.page.TableDataInfo;
import com.wish.financial.service.FinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * @ClassName FinancialController
 * @Description TODO
 * @Author gaozijie
 * @Date 2022/5/31 20:57
 */
@RequestMapping("financial")
@RestController
public class FinancialController extends BaseController {
    @Autowired
    private FinancialService financialService;

    //融资产品查询
    @GetMapping("financialList")
    public TableDataInfo list(FinancialVo financialVo)
    {
        startPage();
        List<FinancialVo> financialVos = financialService.queryFinancingList(financialVo);

        return getDataTable(financialVos);
    }
}
